<script>
    var admin_group_id = {$admin_group_id};
</script>
<div class="panel panel-default panel-intro">

    <div class="panel-heading">
        {:build_heading(null,FALSE)}
        <!--<ul class="nav nav-tabs" data-field="status">
            <li class="active"><a href="#t-all" data-value="" data-toggle="tab">{:__('All')}</a></li>
            {foreach name="statusList" item="vo"}
            <li><a href="#t-{$key}" data-value="{$key}" data-toggle="tab">{$vo}</a></li>
            {/foreach}
        </ul>-->
    </div>


    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade active in" id="one">
                <div class="widget-body no-padding">
                    <div id="toolbar" class="toolbar">
                        <a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}" ><i class="fa fa-refresh"></i> </a>
                        <!--  <a href="javascript:;" class="btn btn-success btn-add {:$auth->check('crm/buserfolloe/add')?'':'hide'}" title="{:__('Add')}" ><i class="fa fa-plus"></i> {:__('Add')}</a>
                          <a href="javascript:;" class="btn btn-success btn-edit btn-disabled disabled {:$auth->check('crm/buserfolloe/edit')?'':'hide'}" title="{:__('Edit')}" ><i class="fa fa-pencil"></i> {:__('Edit')}</a>-->
                        <!--<a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('crm/buserfolloe/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a>-->
                        <!-- <a href="javascript:;" class="btn btn-danger btn-import {:$auth->check('crm/buserfolloe/import')?'':'hide'}" title="{:__('Import')}" id="btn-import-file" data-url="ajax/upload" data-mimetype="csv,xls,xlsx" data-multiple="false"><i class="fa fa-upload"></i> {:__('Import')}</a>
 -->
                        <!-- <div class="dropdown btn-group {:$auth->check('crm/buserfolloe/multi')?'':'hide'}">
                             <a class="btn btn-primary btn-more dropdown-toggle btn-disabled disabled" data-toggle="dropdown"><i class="fa fa-cog"></i> {:__('More')}</a>
                             <ul class="dropdown-menu text-left" role="menu">
                                 <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=normal"><i class="fa fa-eye"></i> {:__('Set to normal')}</a></li>
                                 <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=hidden"><i class="fa fa-eye-slash"></i> {:__('Set to hidden')}</a></li>
                             </ul>
                         </div>-->
                    </div>
                    <table id="table" class="table table-striped table-bordered table-hover table-nowrap"
                           data-operate-edit="{:$auth->check('crm/buserfolloe/edit')}"
                           data-operate-del="{:$auth->check('crm/buserfolloe/del')}"
                           width="100%">
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>
<script id="customformtpl" type="text/html">
    <form id="cxselectform" class="form-horizontal form-commonsearch nice-validator n-default n-bootstrap" novalidate="" method="post" action="">
        <fieldset>
            <div class="row">
                <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                    <label for="createtime" class="control-label col-xs-4">跟进时间</label>
                    <div class="col-xs-8">
                        <input type="hidden" class="form-control operate" name="createtime-operate" data-name="createtime" value="RANGE" readonly="">
                        <input type="text" class="form-control datetimerange" name="createtime" value="" placeholder="跟进时间" id="createtime" data-index="12">
                    </div>
                </div>
                <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                    <label for="bkuser.username" class="control-label col-xs-4">公司名称</label>
                    <div class="col-xs-8">
                        <input type="hidden" class="form-control operate" name="bkuser.company-operate" data-name="bkuser.company" value="LIKE" readonly="">
                        <input type="text" class="form-control company" name="bkuser.company" value="{$allotData.username}" placeholder="客户名称" id="bkuser.company" data-index="2">
                    </div>
                </div>
                <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                    <label for="product.product" class="control-label col-xs-4">产品名</label>
                    <div class="col-xs-8">
                        <input type="hidden" class="form-control operate" name="product.product-operate" data-name="product.product" value="LIKE" readonly="">
                        <input id="product.product" name="product.product"  data-pagination="true"  class="form-control  product"  type="text" value="{$allotData.product}">
                    </div>
                </div>
                <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3 group_select">
                    <label for="group" class="control-label col-xs-4">分组</label>
                    <div class="col-xs-8">
                        <!--     <input type="hidden" class="form-control operate" name="qilist-operate" data-name="qilist" value="=" readonly="">-->
                        <div class="form-inline" data-toggle="cxselect" data-selects="first,second">
                            <select class="first form-control operate" id="group" name="group_id-operate" data-url='' data-name="group_id">
                                <option value="">请选择</option>
                                {foreach name='groupData' item='v'}
                                <option value="{$v.id}">{$v.name}</option>
                                {/foreach}
                            </select>
                            <select class="second form-control" id="admin_id" name="admin_id-operate" data-name="admin_id" data-url="crm/group/admin_group" data-query-name="pid">
                                <option value="">请选择</option>
                                {foreach name='xiaoData' item='v'}
                                <option value="{$v.id}" {if condition="($admin_id eq $v['id'])"}selected{/if}>{$v.nickname}</option>
                                {/foreach}
                            </select>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                    <div class="col-sm-8 col-xs-offset-4">
                        <button type="submit" class="btn btn-success" formnovalidate="">提交</button>
                        <button type="reset" class="btn btn-default">重置</button>
                    </div>
                </div>
            </div>
        </fieldset>
    </form>
</script>
